import mysql from "mysql2";
//连接池
export const getDB = () => {
  // const config = useRuntimeConfig()
  return mysql
    .createPool({
      host: "127.0.0.1",
      user: "root",
      database: "mz",
      password: "root",
      waitForConnections: true,
      connectionLimit: 10,
      queueLimit: 0,
    })
    .promise();
};
